package FSMDE.controllers.tests.mocks;

import main.java.FSMDE.controllers.IDiagramController;
import main.java.FSMDE.views.IDiagramView;

import com.mxgraph.view.mxGraph;


public class MockDiagramView implements IDiagramView {

	private IDiagramController controller;
	private mxGraph graph;
	
	public IDiagramController getController() {
		return this.controller;
	}
	
	@Override
	public void setController(IDiagramController controller) {
		this.controller = controller;
		this.graph = controller.getGraph();
	}

	public mxGraph getGraph() {
		return this.graph;
	}

	@Override
	public void refreshGraphComponent() {
	}

	@Override
	public boolean showDeleteDialog(String typeAndName, String otherMessege,
			boolean couldDelete) {
		return false;
	}

}
